package com.sky.service;


import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {

    void add(Dish dish);

    void addFlavor(List<DishFlavor> flavors);

    PageResult queryPage(DishPageQueryDTO dishPageQueryDTO);

    Boolean hasStatus(List<Long> ids);

    Boolean hasSetMeal(List<Long> ids);

    boolean isOwnSetMeal(Long id);

    void setStatus(Dish dish);

    DishVO getByIdForDishVO(Long id);

    void deleteDish(List<Long> ids);

    void deleteFlavor(List<Long> ids);

    void updateDishAndFlavor(DishVO dishVO);

    List<Dish> getByCategoryId(Integer categoryId);

    List<DishVO> listWithFlavor(Dish dish);
}
